<?php
/**
 *
 */
class Yz_Descriptor_Default
    extends Yz_Hash
    implements Yz_Descriptor_Interface
{

    /************************************
     *          Public methods          *
     ************************************/

    /************************************
     *          Protected methods       *
     ************************************/


    /** the default setter is called after index verification
     *  @param string index
     *  @return chainable
     */
    protected function defaultSetter( $index, $value )
    {
        throw Yz_Exception_ObjectModificationForbidden::_new(array('className' => $this->className()));
    }

    /** the default unsetter is called after index verification
     *  @param string index
     *  @return chainable
     */
    protected function defaultUnsetter( $index )
    {
        throw Yz_Exception_ObjectModificationForbidden::_new(array('className' => $this->className()));
    }

}
